
import * as types from "./types";


function mapDispatchToProps(dispatch){
    return{
        onButtonClick:()=>dispatch(types.CHANGE_TEXT),
        onChangeText:()=>dispatch(types.BUTTON_CLICK),
        onButtonClickChilid:()=>dispatch(types.CLICKCHILID)
    }
}

function mapStateToProps(state) {
    return state;
}
//连接组件

export {mapDispatchToProps,mapStateToProps};